package cn.iocoder.yudao.module.signature.enums;

import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * @author liujq
 * @date 20241127 19:34
 */
@Getter
@AllArgsConstructor
public enum ApplicationSignStatus  implements IntArrayValuable {
    /**
     * 排队中
     */
    QUEUE(0, "排队中"),
    /**
     * 打包中
     */
    PACKAGING(1, "打包中"),
    /**
     * 打包完成
     */
    PACKAGED(2, "打包完成"),
    /**
     * 打包失败
     */
    PACKAGE_FAILED(3, "打包失败"),


    ;
    /**
     * 业务分类
     */
    private final Integer type;
    /**
     * 说明
     */
    private final String description;

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(ApplicationSignStatus::getType).toArray();
    @Override
    public int[] array() {
        return ARRAYS;
    }
}
